home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / option.exe / THEAPAPP.H < prev    next >
C/C++ Source or Header  |  1992-10-25  |  881b  |  43 lines

  1. #if defined( Uses_THeapApp ) && !defined( __THeapApp )
  2. #define __THeapApp
  3.  
  4. /*---------------------------------------------------------*/
  5. /*                                                         */
  6. /*   Turbo Vision 1.0                                      */
  7. /*   Copyright (c) 1991 by Borland International           */
  8. /*                                                         */
  9. /*   Class THeapView heap display                          */
  10. /*---------------------------------------------------------*/
  11.  
  12. class THeapView : public TView
  13. {
  14.  
  15. public:
  16.  
  17.     THeapView( TRect& r );
  18.     virtual void update();
  19.     virtual void draw();
  20.     virtual long heapSize();
  21.  
  22. private:
  23.  
  24.     long oldMem, newMem;
  25.     char heapStr[16];
  26.  
  27. };
  28.  
  29. class THeapApp : public TApplication
  30.     {
  31.     public:
  32.  
  33.         THeapApp();
  34.  
  35.         virtual void idle();
  36.  
  37.     protected:
  38.  
  39.         THeapView *heap;
  40.     };
  41.  
  42. #endif
  43.